package com.ivt.controller.common;

import java.util.Date;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.InitBinder;

import com.ivt.utils.DateEditor;

/**
 * Copyright: Copyright (c) 2014 CNPCMALL <br/>
 * ClassName: GlobalController.java
 * 
 * @Description: 该类的功能描述
 * 
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2014-8-14 下午1:23:04
 * 
 *        Modification History: Date Author Version Description
 *        ---------------------------------------------------------* 2014-8-14
 *        fuyu v1.0.0 修改原因
 */
@ControllerAdvice
public class GlobalController {

	@InitBinder
	public void initBinder(WebDataBinder binder) {
		binder.registerCustomEditor(Date.class, new DateEditor());
	}
}
